import { defineStore } from 'pinia'

export const useStore = defineStore('main', {
    state: () => {
        return {
            isOpen: false,
            activeMenu: {
                title: '首页',
                path: '/home'
            }
        }
    },
    actions: {
        setIsOpen (val) {
            this.isOpen = val
        },
        setActiveMenu (obj) {
            this.activeMenu = obj
        }
    }
})
